<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<script>

//    var a = false;
//    var b = false;

    //&&  并且

//    if(a == false || b == true ){
//        console.log(1);
//    }

    var  aaa = "MDZZ";
    document.cookie = "ni="+aaa;

    function getCookie(Name)
    {
        var search = Name + "="
        if(document.cookie.length > 0)
        {
            offset = document.cookie.indexOf(search)
            if(offset != -1)
            {
                offset += search.length
                end = document.cookie.indexOf(";", offset)
                if(end == -1) end = document.cookie.length
                return unescape(document.cookie.substring(offset, end))
            }
            else return ""
        }
    }
    console.log(getCookie("ni"));


</script>
</body>
</html>